package cn.jieruoda.eb.system.domain.entity;

import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * SystemRoleMenu的复合主键类
 */
@Data
public class SystemRoleMenuId implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    private Integer rid;
    private Integer menuId;
    
    public SystemRoleMenuId() {
    }
    
    public SystemRoleMenuId(Integer rid, Integer menuId) {
        this.rid = rid;
        this.menuId = menuId;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SystemRoleMenuId that = (SystemRoleMenuId) o;
        return Objects.equals(rid, that.rid) && 
               Objects.equals(menuId, that.menuId);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(rid, menuId);
    }
} 